package love.yuanmengrobot.wuziqi.Util;/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:zjj
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/5/11 21:49
 */

import java.awt.*;
import java.util.ArrayList;

public class PontGroup {
    private Color color;//颜色
    private int direction;//横向：1 左斜：2 垂直：3 右斜：4

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    private ArrayList<Point> arr;

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public ArrayList<Point> getArr() {
        return arr;
    }

    public void setArr(ArrayList<Point> arr) {
        this.arr = arr;
    }

    public PontGroup(){
        arr=new ArrayList<Point>();
    }

    public void addPoint(Point point){
        arr.add(point);
    }


}
